/*
 * 描述： TUEF用戶評分信息Service實現類
 * 修改人： Weng.weng
 * 修改时间： May 31, 2019
 * 项目： los-core
 */
package com.aeasycredit.credit.tuef.service.impl;

import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeasycredit.credit.tuef.dao.TuefScoreDao;
import com.aeasycredit.credit.tuef.model.TuefScore;
import com.aeasycredit.credit.tuef.model.TuefScoreQuery;
import com.aeasycredit.credit.tuef.service.TuefScoreService;
import com.google.common.collect.Lists;

/**
 * TUEF用戶評分信息Service實現類<br>
 * 
 * @author Weng.weng
 * @version [版本号, May 31, 2019]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Service
public class TuefScoreServiceImpl implements TuefScoreService {
    
    @Autowired
    private TuefScoreDao tuefScoreDao;

	@Override
	public List<TuefScore> getListByTuefBasicId(String tuefBasicId) {
		
		if (StringUtils.isBlank(tuefBasicId)) {
			return Lists.newArrayList();
		}
		
		TuefScoreQuery query = new TuefScoreQuery();
        query.setTuefBasicId(tuefBasicId);
		return tuefScoreDao.getList(query);
	}
   
}
